<div class="row" style="margin-bottom: 20px; margin-top: -15px;">
    <div class="col-sm-12">
        <h3>
            <i class="fa fa-edit" style="color:<?php echo $color?>"></i> <?php echo $title?>
        </h3>
    </div>
</div>
<div class="row">
    <div class="col-sm-12">
        <form action="<?php echo base_url('admin/country/edit').'/'.$result['idcountry'];?>" id="frm_country_New" class="form-horizontal"   method="post">
            <div class="form-group <?php if(form_error('namecountry') != NULL){echo 'has-error';}?>">
                <label for="subject" class="col-sm-2 control-label">
                   Name <span style="color: red;">*</span>
                </label>
                <div class="col-sm-10" style="padding:0px;">
                    <input type="text" class="form-control" placeholder="Name country" name="namecountry" value = "<?php if($result['namecountry'] != NULL){ echo $result['namecountry'];}else{echo set_value('namecountry');}?>">
                    <?php echo form_error('namecountry','<p class="help-block">','</p>');?>
                </div>
            </div>

            <div class="row">
                <div class="col-sm-6 form-group <?php if(form_error('nameseocountry') != NULL){echo 'has-error';}?>" >
                    <label for="subject" class="col-sm-4 control-label">
                       Seo keyword  
                    </label>
                    <div class="col-sm-8">
                        <textarea class="form-control" name="nameseocountry" id=""  rows="5"><?php if($result['nameseocountry'] != NULL){echo $result['nameseocountry'];}else{echo set_value('nameseocountry');}?></textarea>
                        <?php echo form_error('nameseocountry','<p class="help-block">','</p>');?>
                    </div>
                </div>
                <div class="col-sm-6 form-group <?php if(form_error('description') != NULL){echo 'has-error';}?>" >
                    <label for="subject" class="col-sm-4 control-label">
                       Description
                    </label>
                    <div class="col-sm-8">
                        <textarea class="form-control" name="description" id=""  rows="5"><?php if($result['description'] != NULL){echo $result['description'];}else{echo set_value('description');}?></textarea>
                        <?php echo form_error('description','<p class="help-block">','</p>');?>
                    </div>
                </div>
            </div>
            
            <div class="form-group ">
                <label class="col-sm-2 control-label" for="subject">Active</label>
                <div class="col-sm-10">
                    <input type="checkbox" name="status" value="1" <?php if($result['status'] == 1){echo 'checked = ""';}?>>
                </div>
            </div>
        </form>
    </div>
</div>
<script>
    jQuery(document).ready(function($) {
        $('.btn-index').css({display:'none'});
        $('.btn-edit').css({display:'inline-block'});
        $('.btn-copy').css({display:'none'});
        $('.btn-add').css({display:'none'});
        $('.content input[type="checkbox"]').iCheck({checkboxClass: 'icheckbox_minimal'});
        $('.content input[type="radio"]').iCheck({radioClass: 'iradio_minimal'});
    });

    function Edit(){
        $(".content").mask("<?php echo 'Loading...'; ?>");
        $("#frm_country_New").submit();
    }

    function back_to_list(){
        $(".content").mask("<?php echo 'Loading...'; ?>");
        var url = '<?php echo base_url("admin/country");?>';
        window.location.href = url;
    }
</script>